<layout name='Layout/layout_page' />
	<ol class="breadcrumb">
		<li><a href="<{:U('Sms/index')}>">短信设置</a></li>
      	<li class="active">短信接口</li>
    </ol>

	<form id="ajaxForm" action="<{:U('Sms/insert')}>" method="post" class="form-horizontal form-validata">
		<div class="form-group">
			<label class="col-md-1 control-label" for="image_exts">短信网关</label>
			<div class="col-md-3">
				<input type="text"
				class="form-control"
				name="SMS_API"
				id="SMS_API"
				data-rule-required="true"
				value="<{:C('SMS_API')}>"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="image_size">用户名</label>
			<div class="col-md-3">
				<input type="text"
				class="form-control"
				name="SMS_USER"
				id="SMS_USER"
				data-rule-required="true"
				value="<{:C('SMS_USER')}>"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label">密码</label>
			<div class="col-md-3">
				<input type="text"
				class="form-control"
				name="SMS_PASSWORD"
				id="SMS_PASSWORD"
				data-rule-required="true"
				value="<{:C('SMS_PASSWORD')}>"
				/>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="file_size">管理员手机</label>
			<div class="col-md-3">
				<input type="text"
				class="form-control"
				name="SMS_MOBILE"
				id="SMS_MOBILE"
				data-rule-required="true"
				value="<{:C('SMS_MOBILE')}>"
				/>
			</div>
			<div class="col-md-1">
				<label class="checkbox-inline">
				<input type="checkbox" name="SMS_SERVER_NOTICE" id="SMS_SERVER_NOTICE" value="1" <?php if(C('SMS_SERVER_NOTICE')){echo 'checked';}?> /> 启用通知
				</label>
			</div>
		</div>

		<div class="form-group">
			<label class="col-md-1 control-label" for="file_size">客户短信通知</label>
			<div class="col-md-3">
				<label class="checkbox-inline">
				<input type="checkbox" name="SMS_CLIENT_NOTICE" id="SMS_CLIENT_NOTICE" value="1" <?php if(C('SMS_CLIENT_NOTICE')){echo 'checked';}?> /> 启用
				</label>
			</div>
		</div>
			
		<div class="form-group">
			<div class="col-md-3 col-md-offset-1">
				<button type="submit" class="btn btn-info"><i class="icon-edit icon-white"></i> 保存短信设置</button>
				<a href="http://www.smsbao.com/" target="_blank" class="btn btn-default">短信充值</a>
			</div>
		</div>
		<input type="hidden" name="files" value="sms.php" />
	</form>
</div>

<input type="hidden" id="menu_action" value="goods" />